import request from '@/router/axios';

//获取邮件柱状图
export const getEmailEchart = (data) => {
  return request({
    url: `/api/blade-email/tEmailSpreadInfo/histogram`,
    method: 'get',
    params:data
  })
}

//获取邮件统计数据 - 详情
export const getEmailStaticDetail = (data) => {
  return request({
    url: `/api/blade-email/tEmailSpreadInfo/statistics`,
    method: 'get',
    params:data
  })
}
//获取表格数据
export const getEmailList = (data) => {
  return request({
    url: '/api/blade-email/tEmailSpreadInfo/rules/page',
    method: 'get',
    params:data
  })
}
//获取每种类型对应的数据邮件
export const getTargetEmailList = (row) => {
  return request({
    url: '/api/blade-email/tEmailSpreadInfo/mailProcessing',
    method: 'post',
    data: row
  })
}
//获取主题
export const getTargetEmailTitle = (ruleID,type) => {
  return request({
    url: `/api/blade-email/tEmailSpreadInfo/emailSubject/${type}/${ruleID}`,
    method: 'get'
  })
}
